package com.model;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;


@Entity
public class HotelKTV {
	
	private Integer id;
	private String token;
	private String title;//回复标题
	private String address;//酒店地址
	private String tel;//商家电话 
	private String tel2;//手机号码
	private String ppurl;//订单封面图片
	private String headpic;//订单页头部图片
	private String name;//文字描述
	private String sort;//排序
	private String picurl;//图片地址
	private String url;//酒店或者KTV外链，用于链接到wap网站
	private String info;//商家介绍
	private String info2;//订单说明
	private String createTime;
	private String updateTime;
	private Keyword keyword;
	private Set<HotelKTVList> hotelKTVList = new HashSet<HotelKTVList>();
	
	@OneToMany(mappedBy="hotelKtv")
	public Set<HotelKTVList> getHotelKTVList() {
		return hotelKTVList;
	}
	public void setHotelKTVList(Set<HotelKTVList> hotelKTVList) {
		this.hotelKTVList = hotelKTVList;
	}
	@OneToOne
	@JoinColumn(name="keyid",insertable=true,unique=true)
	public Keyword getKeyword() {
		return keyword;
	}
	public void setKeyword(Keyword keyword) {
		this.keyword = keyword;
	}
	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getToken() {
		return token;
	}
	public void setToken(String token) {
		this.token = token;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	public String getTel2() {
		return tel2;
	}
	public void setTel2(String tel2) {
		this.tel2 = tel2;
	}
	public String getPpurl() {
		return ppurl;
	}
	public void setPpurl(String ppurl) {
		this.ppurl = ppurl;
	}
	public String getHeadpic() {
		return headpic;
	}
	public void setHeadpic(String headpic) {
		this.headpic = headpic;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSort() {
		return sort;
	}
	public void setSort(String sort) {
		this.sort = sort;
	}
	public String getPicurl() {
		return picurl;
	}
	public void setPicurl(String picurl) {
		this.picurl = picurl;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getInfo() {
		return info;
	}
	public void setInfo(String info) {
		this.info = info;
	}
	public String getInfo2() {
		return info2;
	}
	public void setInfo2(String info2) {
		this.info2 = info2;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public String getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}
	
}